<?php

namespace YouBaoLian\Config;

class Config
{
    /**
     * appid
     * @var string $appId
     */
    private $appId = '';

    /**
     * 接口地址
     * @var string $gateway
     */
    private $gateway = '';

    /**
     * 企业公钥
     * @var string $publicKey
     */
    private $publicKey = '';

    /**
     * 私钥
     * @var string $privateKey
     */
    private $privateKey = '';

    /**
     * 优保联公钥
     * @var string $encryptKey
     */
    private $encryptKey = '';

    /**
     * 日记目录
     * @var string $logsDir
     */
    private $logsDir = '';

    /**
     * 超时时间
     * @var int $timeout
     */
    private $timeout = 60;

    /**
     * @return string
     */
    public function getAppId(): string
    {
        return $this->appId;
    }

    /**
     * @param string $appId
     */
    public function setAppId(string $appId): void
    {
        $this->appId = $appId;
    }

    /**
     * @return string
     */
    public function getGateway(): string
    {
        return $this->gateway;
    }

    /**
     * @param string $gateway
     */
    public function setGateway(string $gateway): void
    {
        $this->gateway = $gateway;
    }

    /**
     * @return string
     */
    public function getPublicKey(): string
    {
        return $this->publicKey;
    }

    /**
     * @param string $publicKey
     */
    public function setPublicKey(string $publicKey): void
    {
        $this->publicKey = $publicKey;
    }

    /**
     * @return string
     */
    public function getPrivateKey(): string
    {
        return $this->privateKey;
    }

    /**
     * @param string $privateKey
     */
    public function setPrivateKey(string $privateKey): void
    {
        $this->privateKey = $privateKey;
    }

    /**
     * @return string
     */
    public function getEncryptKey(): string
    {
        return $this->encryptKey;
    }

    /**
     * @param string $encryptKey
     */
    public function setEncryptKey(string $encryptKey): void
    {
        $this->encryptKey = $encryptKey;
    }

    /**
     * @return string
     */
    public function getLogsDir(): string
    {
        return $this->logsDir;
    }

    /**
     * @param string $logsDir
     */
    public function setLogsDir(string $logsDir): void
    {
        $this->logsDir = $logsDir;
    }

    /**
     * @return int
     */
    public function getTimeout(): int
    {
        return $this->timeout;
    }

    /**
     * @param int $timeout
     */
    public function setTimeout(int $timeout): void
    {
        $this->timeout = $timeout;
    }
}
